<template>
  <div>
    <el-checkbox-group v-model="model.marriageList" @change="handlerCheckBox">
      <el-checkbox label="10">未婚</el-checkbox>
      <el-checkbox label="20">已婚</el-checkbox>
      <el-checkbox label="30">丧偶</el-checkbox>
      <el-checkbox label="40">离婚</el-checkbox>
      <el-checkbox label="90">未说明的婚姻状况</el-checkbox>
    </el-checkbox-group>
  </div>
</template>

<script>
export default {
  props: {
    model: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {}
  },
  methods: {
    handlerCheckBox(value) {
      if (this.model.marriageList.length > 1) {
        this.model.marriageList.splice(0, 1)
      }
      // console.log(this.model.marriageList)
    }
  }
}
</script>
<style lang="scss" scoped></style>
